package com.centronix.domain;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the product_release database table.
 * 
 */
@Entity
@Table(name="product_release")
public class ProductRelease implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int releaseId;

    @Temporal( TemporalType.DATE)
	private Date releaseDate;

	private int settled;

	private int units;

	//bi-directional many-to-one association to Stock
    @ManyToOne
	@JoinColumn(name="StockId")
	private Stock stock;

	//bi-directional many-to-one association to Employee
    @ManyToOne
	@JoinColumn(name="EmpId")
	private Employee employee;

	//bi-directional many-to-one association to ReceiptDetail
	@OneToMany(mappedBy="productRelease")
	private List<ReceiptDetail> receiptDetails;

    public ProductRelease() {
    }

	public int getReleaseId() {
		return this.releaseId;
	}

	public void setReleaseId(int releaseId) {
		this.releaseId = releaseId;
	}

	public Date getReleaseDate() {
		return this.releaseDate;
	}

	public void setReleaseDate(Date releaseDate) {
		this.releaseDate = releaseDate;
	}

	public int getSettled() {
		return this.settled;
	}

	public void setSettled(int settled) {
		this.settled = settled;
	}

	public int getUnits() {
		return this.units;
	}

	public void setUnits(int units) {
		this.units = units;
	}

	public Stock getStock() {
		return this.stock;
	}

	public void setStock(Stock stock) {
		this.stock = stock;
	}
	
	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	
	public List<ReceiptDetail> getReceiptDetails() {
		return this.receiptDetails;
	}

	public void setReceiptDetails(List<ReceiptDetail> receiptDetails) {
		this.receiptDetails = receiptDetails;
	}
	
}